<!DOCTYPE html>
<html>
	
<head>
	<meta charset="utf-8" />
	<title>目标伪类选择器</title>
	<!--:target 选择器用于选择当前活跃的目标选择器-->
	<style>
		:target{
			color:red;
		}
	</style>
</head>
<body>
	<a href="#tar">目标</a>
	<a href="#tar2">目标2</a>
	<div id="tar">目标伪类U型安泽奇</div>
	<div id="tar2">啊啊啊啊</div>
</body>
</html>